<?php
// processing query
Log::put ( 'processing query: ' . $_SERVER ['REQUEST_URI'] );
$rtype = Request::type ();
if (strtolower ( $rtype ) == 'htm')
    $rtype = 'html';
$resp = strtoupper ( $rtype ) . "Response";
try {
    if (class_exists ( $resp )) {
        $resp = new $resp ( );
    }
}
catch ( Exception $e ) {
    $resp = new UNKNOWNResponse();
}

echo $resp->out ();
die ();
?>